package yy.yyds.org.mapper;



import yy.yyds.org.domain.Shop;
import yy.yyds.org.query.ShopQuery;

import java.util.List;

public interface ShopMapper {
    void add(Shop shop);

    void delete (Long id);

    void update(Shop shop);

    Shop loadOne(Long id);

    List<Shop> loadAll();
    /*下面两个是分页查询所需方法*/
    /*查询总条数*/
    Integer queryCount(ShopQuery query);
    /*查询当前页的数据*/
    List<Shop>queryList(ShopQuery shopQuery);

}
